using DG.Tweening;
using UnityEngine;

public class HandController : MonoBehaviour
{
	public int type;

	private void OnEnable()
	{
		if (type == 1)
		{
			Transform transform = base.transform;
			Vector3 position = base.transform.position;
			transform.DOMoveY(position.y - 0.3f, 0.5f).SetLoops(-1, LoopType.Yoyo).SetUpdate(isIndependentUpdate: true)
				.SetEase(Ease.Linear);
		}
	}

	public void Move(float posY)
	{
		base.transform.DOMoveY(posY, 0.5f).SetLoops(-1, LoopType.Yoyo).SetUpdate(isIndependentUpdate: true)
			.SetEase(Ease.Linear);
	}
}
